![]() |
ALMaSS
1.0
The Animal, Landscape and Man Simulation System
|
#include <Roe_all.h>
Public Member Functions | |
unsigned | IsAlive () |
int | SupplyReserves () |
virtual void | On_MumAbandon (Roe_Female *) |
virtual void | On_IsDead (Roe_Base *, int, bool) |
virtual void | On_EndGroup () |
virtual void | Send_IsDead () |
virtual void | On_ChangeGroup (int) |
virtual void | On_UpdateGroup (int, int) |
RoeDeerInfo | SupplyInfo () |
virtual void | BeginStep (void) |
BeingStep behaviour - must be implemented in descendent classes. More... | |
virtual void | Step (void) |
Step behaviour - must be implemented in descendent classes. More... | |
virtual void | EndStep (void) |
EndStep behaviour - must be implemented in descendent classes. More... | |
virtual int | WhatState () |
Roe_Base (int x, int y, Landscape *L, RoeDeer_Population_Manager *RPM) | |
virtual | ~Roe_Base () |
![]() | |
unsigned | SupplyFarmOwnerRef () |
AnimalPosition | SupplyPosition () |
APoint | SupplyPoint () |
int | SupplyPolygonRef () |
int | Supply_m_Location_x () |
int | Supply_m_Location_y () |
virtual void | KillThis () |
virtual void | CopyMyself () |
void | SetX (int a_x) |
void | SetY (int a_y) |
TAnimal (int x, int y, Landscape *L) | |
virtual void | ReinitialiseObject (int x, int y, Landscape *L) |
Used to re-use an object - must be implemented in descendent classes. More... | |
virtual void | Dying () |
void | CheckManagement (void) |
void | CheckManagementXY (int x, int y) |
virtual bool | OnFarmEvent (FarmToDo) |
![]() | |
int | GetCurrentStateNo () |
Returns the current state number. More... | |
void | SetCurrentStateNo (int a_num) |
Sets the current state number. More... | |
bool | GetStepDone () |
Returns the step done indicator flag. More... | |
void | SetStepDone (bool a_bool) |
Sets the step done indicator flag. More... | |
virtual void | ReinitialiseObject () |
Used to re-use an object - must be implemented in descendent classes. More... | |
TALMaSSObject () | |
The constructor for TALMaSSObject. More... | |
virtual | ~TALMaSSObject () |
The destructor for TALMaSSObject. More... | |
void | OnArrayBoundsError () |
Used for debugging only, tests basic object properties. More... | |
Public Attributes | |
TRoeDeerStates | CurrentRState |
RoeDeer_Population_Manager * | m_OurPopulation |
int | m_Age |
int | m_Size |
int | m_RangeCentre_x |
int | m_RangeCentre_y |
int | m_Reserves |
double | m_HomeRange |
int | m_OldRange_x |
int | m_OldRange_y |
int | m_SearchRange |
bool | m_float |
bool | m_Disperse |
bool | m_HaveRange |
Roe_Female * | Mum |
int | m_ID |
int | m_FixlistNumber |
bool | m_Sex |
bool | m_IsDead |
unsigned | Alive |
Protected Member Functions | |
bool | Running (int x, int y) |
void | Ignore (int p_To_x, int p_To_y) |
int | DistanceTo (int p_x, int p_y, int p_To_x, int p_To_y) |
int | DistanceToCC (int p_x, int p_y, int p_To_x, int p_To_y) |
int | DirectionTo (int p_x, int p_y, int p_To_x, int p_To_y) |
int | DirectionToCC (int p_x, int p_y, int p_To_x, int p_To_y) |
int | NextStep (int weight, int dir, int recurselevel) |
int | AssessHabitat (int polyref) |
int | AssessHabitat (int p_x, int p_y) |
int | LegalHabitat (int p_x, int p_y) |
int | LegalHabitatCC (int p_x, int p_y) |
int | Cover (int polyref) |
Calls the cover calculation for a given polyref. More... | |
int | Cover (int p_x, int p_y) |
Calls the cover calculation for a given x,y location. More... | |
int | CalcCover (TTypesOfLandscapeElement a_ele, int a_poly) |
The cover calculation for a given element type. More... | |
int | CoverCC (int p_x, int p_y) |
int | NutriValue (int polyref) |
int | NutriValue (int p_x, int p_y) |
int | NutriValueCC (int p_x, int p_y) |
int | Feeding (bool p_Disperse) |
void | SeekCover (int threshold) |
void | SeekNutri (int p_threshold) |
int | ProbRoadCross (int p_x, int p_y, int p_width) |
double | CalculateRoadMortality (int p_x, int p_y, int p_width) |
void | WalkTo (int pos_x, int pos_y) |
void | WalkToCC (int pos_x, int pos_y) |
![]() | |
void | CorrectWrapRound () |
Corrects wrap around co-ordinate problems. More... | |
Protected Attributes | |
int | timestep |
int | m_Cross_x |
int | m_Cross_y |
double | m_EnergyGained |
int | m_RecovCount |
int | m_RumiCount |
int | m_FeedCount |
int | m_LengthFeedPeriod |
int | m_LengthRuminate |
int | m_LastState |
int | m_danger_x |
int | m_danger_y |
int | m_distrc |
int | m_weightedstep |
int | SimW |
int | SimH |
![]() | |
int | m_Location_x |
int | m_Location_y |
Landscape * | m_OurLandscape |
![]() | |
int | m_CurrentStateNo |
The basic state number for all objects - '-1' indicates death. More... | |
bool | m_StepDone |
Indicates whether the iterative step code is done for this timestep. More... | |
Roe_Base::Roe_Base | ( | int | x, |
int | y, | ||
Landscape * | L, | ||
RoeDeer_Population_Manager * | RPM | ||
) |
Roe_Base::Roe_Base - constructor for Roe base. Sets all attributes
References Alive, CurrentRState, m_Cross_x, m_Cross_y, m_danger_x, m_danger_y, m_Disperse, m_EnergyGained, m_FeedCount, m_FixlistNumber, m_float, m_HaveRange, m_HomeRange, m_LengthFeedPeriod, m_LengthRuminate, TAnimal::m_Location_x, TAnimal::m_Location_y, m_OldRange_x, m_OldRange_y, TAnimal::m_OurLandscape, m_OurPopulation, m_RangeCentre_x, m_RangeCentre_y, m_RecovCount, m_RumiCount, m_weightedstep, rds_Initialise, SimH, RoeDeer_Population_Manager::SimH, SimW, RoeDeer_Population_Manager::SimW, and timestep.
|
protected |
|
protected |
|
virtual |
BeingStep behaviour - must be implemented in descendent classes.
Reimplemented from TAnimal.
Reimplemented in Roe_Male, Roe_Female, Roe_Fawn, and Roe_Adult_Base.
References TALMaSSObject::m_CurrentStateNo.
|
protected |
The cover calculation for a given element type.
Each type of habitat is given a relative cover value for an adult roe from 0-4. Non-habitat is given a value of -1. Openland with very low veg = 0. Related to VegHeight and type of veg. In open land all that matters is VegHeight
References TAnimal::m_OurLandscape, Landscape::SupplyTreeHeight(), Landscape::SupplyVegHeight(), tole_ActivePit, tole_AmenityGrass, tole_BareRock, tole_Building, tole_BuiltUpWithParkland, tole_Carpark, tole_Churchyard, tole_Coast, tole_ConiferousForest, tole_Copse, tole_DeciduousForest, tole_Fence, tole_Field, tole_FieldBoundary, tole_Foobar, tole_Freshwater, tole_Garden, tole_Heath, tole_HedgeBank, tole_Hedges, tole_HeritageSite, tole_IndividualTree, tole_LargeRoad, tole_Marsh, tole_MixedForest, tole_MownGrass, tole_NaturalGrassDry, tole_NaturalGrassWet, tole_OrchardBand, tole_PermanentSetaside, tole_PermPasture, tole_PermPastureLowYield, tole_PermPastureTussocky, tole_PitDisused, tole_PlantNursery, tole_Pond, tole_Pylon, tole_Railway, tole_River, tole_RiversidePlants, tole_RiversideTrees, tole_RoadsideSlope, tole_RoadsideVerge, tole_Saltmarsh, tole_Saltwater, tole_SandDune, tole_Scrub, tole_SmallRoad, tole_StoneWall, tole_Stream, tole_Track, tole_UrbanNoVeg, tole_UrbanPark, tole_Vildtager, tole_WindTurbine, tole_WoodlandMargin, tole_WoodyEnergyCrop, tole_YoungForest, and Landscape::Warn().
Referenced by Cover().
|
protected |
Roe_Base::CalculateRoadMortality - calculates the mortality probability of crossing a road, depending on traffic load, probability of car passing as roe deer is passing, given this - probability of roe deer getting hit. Calls function SupplyTrafficLoad().
References TAnimal::m_OurLandscape, random(), and Landscape::SupplyTrafficLoad().
Referenced by NextStep(), Running(), Roe_Fawn::RunTo(), and WalkTo().
|
protected |
Calls the cover calculation for a given x,y location.
References CalcCover(), TAnimal::m_OurLandscape, Landscape::SupplyElementType(), and Landscape::SupplyPolyRef().
|
protected |
Calls the cover calculation for a given polyref.
Roe_Base::Cover - Input coordinates. Each type of habitat is given a relative cover value for an adult roe deer from 0-4. Non-habitat is given a value of -1. Open land with very low veg = 0. Related to VegHeight and type of vegetation. In open land all that matters is VegHeight. Returns cover value. Calls functions SupplyElementType(), SupplyVegHeight() and SupplyTreeHeight().
References CalcCover(), TAnimal::m_OurLandscape, and Landscape::SupplyElementType().
Referenced by Roe_Fawn::FARuminate(), Roe_Female::FRuminate(), Roe_Male::MRuminate(), Roe_Female::On_ApproachOfDanger(), Roe_Male::On_ApproachOfDanger(), Running(), and SeekCover().
|
inlineprotected |
corrects coordinates (for cover) for wrap around landscape
Referenced by SeekCover().
|
protected |
Roe_Base::DirectionTo - calculates direction to a specific location
Referenced by Roe_Fawn::FAFeed(), Roe_Female::FDisperse(), Feeding(), Roe_Female::FEvade(), Roe_Male::MDisperse(), Roe_Male::MEvade(), Running(), Roe_Fawn::RunTo(), and WalkTo().
|
inlineprotected |
Referenced by WalkTo().
|
protected |
Roe_Base::DistanceTo - calculates distance from 2 coordinates to other 2 coordinates.
Referenced by Roe_Male::BeginStep(), Roe_Fawn::FAFeed(), Roe_Fawn::FASuckle(), Feeding(), Roe_Female::FEstablishRange(), Roe_Female::FOnNewDay(), Roe_Male::MOnNewDay(), Roe_Fawn::On_ApproachOfDanger(), Roe_Female::On_ApproachOfDanger(), Roe_Male::On_ApproachOfDanger(), Roe_Male::On_InHeat(), Roe_Male::On_Rank(), Roe_Fawn::RunTo(), Roe_Fawn::SelectBedSite(), and WalkTo().
|
inlineprotected |
Referenced by Roe_Female::FEstablishRange(), and WalkTo().
|
virtual |
EndStep behaviour - must be implemented in descendent classes.
Reimplemented from TAnimal.
Reimplemented in Roe_Male, Roe_Female, Roe_Fawn, and Roe_Adult_Base.
References TALMaSSObject::m_CurrentStateNo, and TALMaSSObject::m_StepDone.
|
protected |
Roe_Base::Feeding - When habitat has been deemed suitable for feeding, next step is to evaluate whether steps should be weighted towards range centre or not. To avoid that animals gets trapped when using very directed walk, their progress during the last hour (6 timesteps) is monitored. Calls DistanceTo(), NextStep().
References DirectionTo(), DistanceTo(), m_distrc, m_IsDead, TAnimal::m_Location_x, TAnimal::m_Location_y, m_RangeCentre_x, m_RangeCentre_y, m_SearchRange, m_weightedstep, and NextStep().
Referenced by Roe_Female::FFeed(), and Roe_Male::MFeed().
|
protected |
|
inline |
Referenced by Roe_Male::AddSatellite(), RoeDeer_Population_Manager::AddToFightlist(), RoeDeer_Population_Manager::AddToGroup(), Roe_Fawn::BeginStep(), Roe_Female::BeginStep(), Roe_Male::BeginStep(), RoeDeer_Population_Manager::CreateNewGroup(), RoeDeer_Population_Manager::DoFirst(), Roe_Fawn::EndStep(), Roe_Female::EndStep(), Roe_Male::EndStep(), Roe_Fawn::FADie(), Roe_Fawn::FAFeed(), Roe_Fawn::FAHide(), Roe_Fawn::FAInit(), Roe_Fawn::FAOnNewDay(), Roe_Fawn::FARecover(), Roe_Fawn::FARuminate(), Roe_Fawn::FARunToMother(), Roe_Fawn::FASuckle(), Roe_Fawn::FAUpdateEnergy(), Roe_Female::FCareForYoung(), Roe_Female::FDie(), Roe_Female::FDisperse(), Roe_Female::FEstablishRange(), Roe_Female::FEvade(), Roe_Female::FFeed(), Roe_Female::FFormGroup(), Roe_Female::FGiveBirth(), Roe_Female::FIgnore(), Roe_Female::FInHeat(), Roe_Female::FMate(), Roe_Female::FOnMature(), Roe_Female::FOnNewDay(), Roe_Female::FRecover(), Roe_Female::FRuminate(), Roe_Female::FRun(), Roe_Female::FUpdateEnergy(), Roe_Female::FUpdateGestation(), Roe_Male::MAttendFemale(), Roe_Male::MDie(), Roe_Male::MDisperse(), Roe_Male::MEstablishRange(), Roe_Male::MEstablishTerritory(), Roe_Male::MEvade(), Roe_Male::MFeed(), Roe_Male::MFight(), Roe_Male::MIgnore(), Roe_Male::MMate(), Roe_Male::MOnMature(), Roe_Male::MOnNewDay(), Roe_Male::MRecover(), Roe_Male::MRuminate(), Roe_Male::MRun(), Roe_Male::MUpdateEnergy(), NextStep(), Roe_Male::On_Expelled(), Roe_Male::On_InHeat(), Roe_Fawn::On_IsDead(), Roe_Female::On_IsDead(), Roe_Male::On_IsDead(), Roe_Male::On_NewHost(), RoeDeer_Population_Manager::RemoveFromFightlist(), RoeDeer_Population_Manager::RemoveFromGroup(), Roe_Male::RemoveSatellite(), Roe_Female::Roe_Female(), Roe_Male::Roe_Male(), Roe_Female::Send_EndGroup(), Roe_Fawn::Step(), Roe_Female::Step(), and Roe_Male::Step().
|
protected |
Roe_Base::LegalHabitat - returns a value indicating whether element type can be crossed or not. -1: lethal, cannot be crossed, 0: roads, needs evaluation, 1: can be crossed
References g_landscape_p, TAnimal::m_OurLandscape, Landscape::PolytypeToString(), Landscape::SupplyElementType(), tole_ActivePit, tole_AmenityGrass, tole_BareRock, tole_Building, tole_BuiltUpWithParkland, tole_Carpark, tole_Churchyard, tole_Coast, tole_ConiferousForest, tole_Copse, tole_DeciduousForest, tole_Fence, tole_Field, tole_FieldBoundary, tole_Foobar, tole_Freshwater, tole_Garden, tole_Heath, tole_HedgeBank, tole_Hedges, tole_HeritageSite, tole_IndividualTree, tole_LargeRoad, tole_Marsh, tole_MixedForest, tole_MownGrass, tole_NaturalGrassDry, tole_NaturalGrassWet, tole_Orchard, tole_OrchardBand, tole_PermanentSetaside, tole_PermPasture, tole_PermPastureLowYield, tole_PermPastureTussocky, tole_PitDisused, tole_PlantNursery, tole_Pond, tole_Pylon, tole_Railway, tole_River, tole_RiversidePlants, tole_RiversideTrees, tole_RoadsideSlope, tole_RoadsideVerge, tole_Saltmarsh, tole_Saltwater, tole_SandDune, tole_Scrub, tole_SmallRoad, tole_StoneWall, tole_Stream, tole_Track, tole_UrbanNoVeg, tole_UrbanPark, tole_Vildtager, tole_WindTurbine, tole_WoodlandMargin, tole_WoodyEnergyCrop, tole_YoungForest, and Landscape::Warn().
Referenced by Roe_Female::FEstablishRange(), and NextStep().
|
inlineprotected |
LegalHabitatCC -calls LegalHabitat witth coordinates corrected for wrap-around
Referenced by Roe_Female::FEstablishRange(), NextStep(), and WalkTo().
|
protected |
Roe_Base::NextStep - This function makes the animal object perform a semirandom walk choosing best feeding habitat based on cover and nutri.value one step at a time. Equals 10 minutes of activity. Calls functions LegalHabitatCC(), SupplyElementType(), SupplyRoadWidth(), ProbRoadCross(), CalculateRoadMortality(), LegalHabitat(), SupplyPolyRef(),CorrectWidth(), CorrectHeight(), SuplyPolyRefCC().
References CalculateRoadMortality(), Landscape::CorrectCoords(), Landscape::CorrectHeight(), Landscape::CorrectWidth(), IsAlive(), LegalHabitat(), LegalHabitatCC(), m_Cross_x, m_Cross_y, TAnimal::m_Location_x, TAnimal::m_Location_y, TAnimal::m_OurLandscape, ProbRoadCross(), random(), SimH, SimW, Landscape::SupplyElementType(), Landscape::SupplyPolyRef(), Landscape::SupplyPolyRefCC(), Landscape::SupplyRoadWidth(), tole_River, Vector_x, Vector_y, and Landscape::Warn().
Referenced by Roe_Fawn::FAFeed(), Roe_Female::FDisperse(), Feeding(), Roe_Female::FEvade(), Roe_Male::MDisperse(), and Roe_Male::MEvade().
|
protected |
Roe_Base::NutriValue - returns the amount of energy gained per 10 minutes in a particular polygon. Two switch statements; 1 for element type and 1 for crop type if field. Digestable energy content (DEC) is scaled to a monthly estimate of intake rate. Returns DEC value. calls functions SupplyElementType(), SupplyVegType(), SupplyVegBiomass().
References g_landscape_p, IntakeRate, TAnimal::m_OurLandscape, Landscape::PolytypeToString(), Landscape::SupplyDayInYear(), Landscape::SupplyElementType(), Landscape::SupplyMonth(), Landscape::SupplyVegBiomass(), Landscape::SupplyVegType(), tole_ActivePit, tole_AmenityGrass, tole_BareRock, tole_Building, tole_Carpark, tole_Churchyard, tole_Coast, tole_ConiferousForest, tole_Copse, tole_DeciduousForest, tole_Fence, tole_Field, tole_FieldBoundary, tole_Foobar, tole_Freshwater, tole_Garden, tole_Heath, tole_HedgeBank, tole_Hedges, tole_HeritageSite, tole_IndividualTree, tole_LargeRoad, tole_Marsh, tole_MixedForest, tole_NaturalGrassDry, tole_NaturalGrassWet, tole_Orchard, tole_PermanentSetaside, tole_PermPasture, tole_PermPastureLowYield, tole_PermPastureTussocky, tole_PitDisused, tole_PlantNursery, tole_Pond, tole_Pylon, tole_Railway, tole_River, tole_RiversidePlants, tole_RiversideTrees, tole_RoadsideSlope, tole_RoadsideVerge, tole_Saltmarsh, tole_Saltwater, tole_SandDune, tole_Scrub, tole_SmallRoad, tole_StoneWall, tole_Stream, tole_Track, tole_UrbanNoVeg, tole_Vildtager, tole_WindTurbine, tole_WoodlandMargin, tole_WoodyEnergyCrop, tole_YoungForest, tov_BroadBeans, tov_CloverGrassGrazed1, tov_CloverGrassGrazed2, tov_FieldPeas, tov_FodderBeet, tov_Heath, tov_Maize, tov_MaizeSilage, tov_MaizeStrigling, tov_NoGrowth, tov_None, tov_Oats, tov_OBarleyPeaCloverGrass, tov_OCarrots, tov_OCloverGrassGrazed1, tov_OCloverGrassGrazed2, tov_OCloverGrassSilage1, tov_OFieldPeas, tov_OFieldPeasSilage, tov_OFirstYearDanger, tov_OFodderBeet, tov_OGrazingPigs, tov_OMaizeSilage, tov_OOats, tov_OPermanentGrassGrazed, tov_OPotatoes, tov_OSBarleySilage, tov_OSpringBarley, tov_OSpringBarleyPigs, tov_OTriticale, tov_OWinterBarley, tov_OWinterRape, tov_OWinterRye, tov_OWinterWheat, tov_OWinterWheatUndersown, tov_PermanentGrassGrazed, tov_PermanentSetaside, tov_Potatoes, tov_PotatoesIndustry, tov_SeedGrass1, tov_SeedGrass2, tov_Setaside, tov_SpringBarley, tov_SpringBarleyCloverGrass, tov_SpringBarleyGrass, tov_SpringBarleySilage, tov_SpringBarleySpr, tov_SpringRape, tov_SugarBeet, tov_Triticale, tov_WinterBarley, tov_WinterRape, tov_WinterRye, tov_WinterWheat, Landscape::VegtypeToString(), and Landscape::Warn().
|
protected |
Referenced by Roe_Fawn::FAFeed(), Roe_Female::FFeed(), Roe_Male::MFeed(), and SeekNutri().
|
inlineprotected |
Referenced by SeekNutri().
|
inlinevirtual |
|
inlinevirtual |
Reimplemented in Roe_Female, and Roe_Fawn.
|
inlinevirtual |
Reimplemented in Roe_Male, Roe_Female, and Roe_Fawn.
Referenced by Roe_Fawn::FADie(), and Roe_Female::FDie().
|
inlinevirtual |
|
inlinevirtual |
Reimplemented in Roe_Female, and Roe_Fawn.
|
protected |
Roe_Base::ProbRoadCross - returns the probability of crossing road, depending on traffic load and road size (width). Calls function SupplyTrafficLoad().
References TAnimal::m_OurLandscape, MaxRoadWidth, MaxTraffic, and Landscape::SupplyTrafficLoad().
Referenced by NextStep(), and WalkTo().
|
protected |
Roe_Base::Running - straight line movement away from danger. Avoid water, buildings and gardens, but not roads. The Direction with highest total cover value is chosen. After 150 steps, the deer checks if this habitat is safe, and if cover is not good, the deer will keep running and check if safe every 25 m. Calls DirectionTo(), Cover(), SupplyRoadWidth(), CalculateRoadMortality().
References CalculateRoadMortality(), Cover(), DirectionTo(), m_IsDead, TAnimal::m_Location_x, TAnimal::m_Location_y, TAnimal::m_OurLandscape, random(), Landscape::SupplyRoadWidth(), Vector_x, and Vector_y.
Referenced by Roe_Female::FRun(), Roe_Male::MRun(), and Roe_Fawn::On_ApproachOfDanger().
|
protected |
Roe_Base::SeekCover - Method for locating good spot based on cover. Used to find place to ruminate and fawn bedsites. Threshold is the minimum acceptable cover value Calls CoverCC(), WalkToCC(), Cover(), WalkTo().
References Cover(), CoverCC(), TAnimal::m_Location_x, TAnimal::m_Location_y, TAnimal::m_OurLandscape, random(), SimH, SimW, Vector_x, Vector_y, WalkTo(), WalkToCC(), and Landscape::Warn().
Referenced by Roe_Fawn::FARuminate(), Roe_Female::FRuminate(), Roe_Male::MRuminate(), and Roe_Fawn::SelectBedSite().
|
protected |
Roe_Base::SeekNutri - locates good spot to feed based on Digestable energy content (DEC). Searches outwards in all directions for better quality. Equals 10 minutes of search activity. Calls NutriValueCC(), WalkToCC(), WalkTo(), NutriValue().
References TAnimal::m_Location_x, TAnimal::m_Location_y, TAnimal::m_OurLandscape, NutriValue(), NutriValueCC(), random(), SimH, SimW, Vector_x, Vector_y, WalkTo(), WalkToCC(), and Landscape::Warn().
Referenced by Roe_Female::FFeed(), and Roe_Male::MFeed().
|
virtual |
Step behaviour - must be implemented in descendent classes.
Reimplemented from TAnimal.
Reimplemented in Roe_Male, Roe_Female, Roe_Fawn, and Roe_Adult_Base.
References TALMaSSObject::m_CurrentStateNo, and TALMaSSObject::m_StepDone.
RoeDeerInfo Roe_Base::SupplyInfo | ( | ) |
Roe_Base::SupplyInfo - returns info on age, size, range center.
References RoeDeerInfo::m_Age, m_Age, RoeDeerInfo::m_OldRange_x, m_OldRange_x, RoeDeerInfo::m_OldRange_y, m_OldRange_y, RoeDeerInfo::m_Range_x, RoeDeerInfo::m_Range_y, m_RangeCentre_x, m_RangeCentre_y, RoeDeerInfo::m_Size, and m_Size.
Referenced by Roe_Fawn::FAInit(), Roe_Female::FFormGroup(), Roe_Male::MEstablishTerritory(), Roe_Male::On_IsDead(), Roe_Male::On_Rank(), RoeDeer_Population_Manager::SupplyFemaleRC(), RoeDeer_Population_Manager::SupplyMaleRC(), and RoeDeer_Population_Manager::UpdateRanges().
|
inline |
|
protected |
Roe_Base::WalkTo - directed movement towards a position, all habitat except lethal habitat is used. Roads can be crossed, but mortality probability due to road crossing is calculated. Calls DirectionTo(), LegalHabitatCC(), CorrectCoords(), SupplyRoadWidth(), CalculateRoadMortality(), DirectionToCC().
References CalculateRoadMortality(), Landscape::CorrectCoords(), DirectionTo(), DirectionToCC(), DistanceTo(), DistanceToCC(), LegalHabitatCC(), m_IsDead, TAnimal::m_Location_x, TAnimal::m_Location_y, TAnimal::m_OurLandscape, ProbRoadCross(), random(), SimH, SimW, Landscape::SupplyRoadWidth(), Vector_x, and Vector_y.
Referenced by Roe_Fawn::FASuckle(), Roe_Male::MAttendFemale(), Roe_Male::On_InHeat(), SeekCover(), SeekNutri(), and Roe_Fawn::SelectBedSite().
|
inlineprotected |
Referenced by SeekCover(), and SeekNutri().
|
inlinevirtual |
Reimplemented from TAnimal.
unsigned Roe_Base::Alive |
Referenced by Roe_Base(), and ~Roe_Base().
TRoeDeerStates Roe_Base::CurrentRState |
Referenced by Roe_Fawn::BeginStep(), Roe_Male::BeginStep(), Roe_Fawn::EndStep(), Roe_Female::EndStep(), Roe_Male::EndStep(), Roe_Fawn::On_ApproachOfDanger(), Roe_Female::On_ApproachOfDanger(), Roe_Male::On_ApproachOfDanger(), Roe_Female::On_EndCare(), Roe_Male::On_Expelled(), Roe_Male::On_InHeat(), Roe_Female::On_InitCare(), Roe_Fawn::On_IsDead(), Roe_Female::On_IsDead(), Roe_Male::On_IsDead(), Roe_Fawn::On_MumAbandon(), Roe_Base(), Roe_Fawn::Send_InitCare(), Roe_Fawn::Step(), Roe_Female::Step(), and Roe_Male::Step().
int Roe_Base::m_Age |
Referenced by Roe_Male::BeginStep(), Roe_Fawn::FADie(), Roe_Fawn::FAFeed(), Roe_Fawn::FAHide(), Roe_Fawn::FAInit(), Roe_Fawn::FAOnNewDay(), Roe_Fawn::FARecover(), Roe_Fawn::FARuminate(), Roe_Fawn::FARunToMother(), Roe_Fawn::FASuckle(), Roe_Fawn::FAUpdateEnergy(), Roe_Female::FDie(), Roe_Female::FOnNewDay(), Roe_Female::FUpdateEnergy(), Roe_Female::FUpdateGestation(), Roe_Fawn::Mature(), Roe_Male::MDie(), Roe_Male::MEstablishTerritory(), Roe_Male::MOnNewDay(), Roe_Fawn::On_ApproachOfDanger(), Roe_Male::On_InHeat(), Roe_Fawn::On_IsDead(), Roe_Male::On_IsDead(), Roe_Fawn::On_MumAbandon(), Roe_Male::On_Rank(), Roe_Fawn::Roe_Fawn(), Roe_Female::Roe_Female(), Roe_Male::Roe_Male(), and SupplyInfo().
|
protected |
Referenced by NextStep(), and Roe_Base().
|
protected |
Referenced by NextStep(), and Roe_Base().
|
protected |
|
protected |
bool Roe_Base::m_Disperse |
Referenced by Roe_Female::FDisperse(), Roe_Female::FEstablishRange(), Roe_Female::FFeed(), Roe_Female::FFormGroup(), Roe_Female::FOnNewDay(), Roe_Female::FRuminate(), Roe_Male::MDisperse(), Roe_Male::MEstablishRange(), Roe_Male::MEstablishTerritory(), Roe_Male::MFeed(), Roe_Male::MOnNewDay(), Roe_Male::MRuminate(), Roe_Male::On_IsDead(), Roe_Male::On_Rank(), and Roe_Base().
|
protected |
Referenced by Feeding().
|
protected |
|
protected |
int Roe_Base::m_FixlistNumber |
bool Roe_Base::m_float |
bool Roe_Base::m_HaveRange |
Referenced by RoeDeer_Population_Manager::DoFirst(), Roe_Female::FDisperse(), Roe_Female::FEstablishRange(), Roe_Female::FUpdateGestation(), Roe_Male::MDisperse(), Roe_Male::MEstablishRange(), Roe_Male::MOnNewDay(), Roe_Male::On_Rank(), Roe_Base(), Roe_Female::Roe_Female(), Roe_Male::Roe_Male(), and RoeDeer_Population_Manager::UpdateRanges().
double Roe_Base::m_HomeRange |
Referenced by Roe_Base().
int Roe_Base::m_ID |
Referenced by RoeDeer_Population_Manager::CreateObjects(), and Roe_Fawn::Mature().
bool Roe_Base::m_IsDead |
Referenced by Roe_Fawn::FAHide(), Roe_Fawn::FARuminate(), Roe_Fawn::FARunToMother(), Feeding(), Roe_Female::FFeed(), Roe_Female::FRuminate(), Roe_Female::FRun(), Roe_Male::MFeed(), Roe_Male::MRuminate(), Roe_Male::MRun(), Roe_Fawn::On_ApproachOfDanger(), Roe_Fawn::On_IsDead(), Roe_Fawn::On_MumAbandon(), Roe_Fawn::Roe_Fawn(), Roe_Female::Roe_Female(), Roe_Male::Roe_Male(), Running(), Roe_Fawn::RunTo(), and WalkTo().
|
protected |
Referenced by Roe_Fawn::FAFeed(), Roe_Fawn::FAHide(), Roe_Fawn::FARecover(), Roe_Fawn::FARuminate(), Roe_Fawn::FASuckle(), Roe_Fawn::FAUpdateEnergy(), Roe_Female::FDisperse(), Roe_Female::FEvade(), Roe_Female::FFeed(), Roe_Female::FIgnore(), Roe_Female::FInHeat(), Roe_Female::FMate(), Roe_Female::FRecover(), Roe_Female::FRuminate(), Roe_Female::FUpdateGestation(), Roe_Male::MAttendFemale(), Roe_Male::MDisperse(), Roe_Male::MEvade(), Roe_Male::MFeed(), Roe_Male::MIgnore(), Roe_Male::MRecover(), Roe_Male::MRuminate(), Roe_Male::MUpdateEnergy(), Roe_Fawn::Roe_Fawn(), Roe_Female::Roe_Female(), and Roe_Male::Roe_Male().
|
protected |
|
protected |
int Roe_Base::m_OldRange_x |
int Roe_Base::m_OldRange_y |
RoeDeer_Population_Manager* Roe_Base::m_OurPopulation |
Referenced by Roe_Female::AddFawnToList(), Roe_Male::BeginStep(), Roe_Fawn::EndStep(), Roe_Female::EndStep(), Roe_Male::EndStep(), Roe_Fawn::FADie(), Roe_Female::FDie(), Roe_Female::FEstablishRange(), Roe_Female::FFormGroup(), Roe_Female::FGiveBirth(), Roe_Female::FInHeat(), Roe_Female::FOnMature(), Roe_Female::FOnNewDay(), Roe_Fawn::Mature(), Roe_Male::MDie(), Roe_Male::MEstablishRange(), Roe_Male::MEstablishTerritory(), Roe_Male::MOnMature(), Roe_Male::MOnNewDay(), Roe_Male::MUpdateEnergy(), Roe_Female::On_CanJoinGroup(), Roe_Fawn::On_ChangeGroup(), Roe_Male::On_InHeat(), Roe_Female::On_InitCare(), Roe_Male::On_IsDead(), Roe_Male::On_Rank(), Roe_Base(), Roe_Female::Roe_Female(), Roe_Female::Send_EndGroup(), Roe_Fawn::~Roe_Fawn(), and Roe_Female::~Roe_Female().
int Roe_Base::m_RangeCentre_x |
Referenced by Roe_Fawn::FAFeed(), Roe_Female::FDisperse(), Feeding(), Roe_Female::FEstablishRange(), Roe_Female::FOnNewDay(), Roe_Male::MDisperse(), Roe_Male::MEstablishRange(), Roe_Male::MEstablishTerritory(), Roe_Female::On_EndGroup(), Roe_Male::On_InHeat(), Roe_Male::On_IsDead(), Roe_Male::On_Rank(), Roe_Female::On_UpdateGroup(), Roe_Base(), and SupplyInfo().
int Roe_Base::m_RangeCentre_y |
Referenced by Roe_Fawn::FAFeed(), Roe_Female::FDisperse(), Feeding(), Roe_Female::FEstablishRange(), Roe_Female::FOnNewDay(), Roe_Male::MDisperse(), Roe_Male::MEstablishRange(), Roe_Male::MEstablishTerritory(), Roe_Female::On_EndGroup(), Roe_Male::On_InHeat(), Roe_Male::On_IsDead(), Roe_Male::On_Rank(), Roe_Female::On_UpdateGroup(), Roe_Base(), and SupplyInfo().
|
protected |
Referenced by Roe_Fawn::FARecover(), Roe_Female::FRecover(), Roe_Female::FRun(), Roe_Male::MRecover(), Roe_Male::MRun(), and Roe_Base().
int Roe_Base::m_Reserves |
|
protected |
Referenced by Roe_Fawn::FARuminate(), Roe_Female::FRuminate(), Roe_Male::MRuminate(), and Roe_Base().
int Roe_Base::m_SearchRange |
Referenced by Roe_Male::BeginStep(), Feeding(), Roe_Female::FEstablishRange(), Roe_Female::FFormGroup(), Roe_Female::FInHeat(), Roe_Female::FOnMature(), Roe_Female::FOnNewDay(), Roe_Male::MDie(), Roe_Male::MEstablishTerritory(), Roe_Male::MOnMature(), Roe_Male::MOnNewDay(), Roe_Male::On_IsDead(), Roe_Fawn::Roe_Fawn(), and RoeDeer_Population_Manager::UpdateRanges().
bool Roe_Base::m_Sex |
Referenced by Roe_Fawn::FADie(), Roe_Fawn::Mature(), Roe_Fawn::Roe_Fawn(), Roe_Female::Roe_Female(), and Roe_Male::Roe_Male().
int Roe_Base::m_Size |
Referenced by Roe_Male::BeginStep(), RoeDeer_Population_Manager::DoFirst(), Roe_Fawn::FAUpdateEnergy(), Roe_Female::FGiveBirth(), Roe_Female::FUpdateEnergy(), Roe_Fawn::Mature(), Roe_Male::MEstablishRange(), Roe_Male::MEstablishTerritory(), Roe_Male::MUpdateEnergy(), Roe_Male::On_InHeat(), Roe_Female::On_InitCare(), Roe_Male::On_IsDead(), Roe_Male::On_Rank(), Roe_Fawn::Roe_Fawn(), Roe_Female::Roe_Female(), Roe_Male::Roe_Male(), and SupplyInfo().
|
protected |
Referenced by Roe_Fawn::EndStep(), Roe_Female::EndStep(), Roe_Male::EndStep(), Feeding(), and Roe_Base().
Roe_Female* Roe_Base::Mum |
Referenced by RoeDeer_Population_Manager::CreateObjects(), Roe_Fawn::FADie(), Roe_Fawn::FAFeed(), Roe_Fawn::FAHide(), Roe_Fawn::FAInit(), Roe_Fawn::FARecover(), Roe_Fawn::FARunToMother(), Roe_Fawn::FASuckle(), Roe_Female::FDie(), Roe_Fawn::Mature(), Roe_Male::MDie(), Roe_Fawn::On_IsDead(), Roe_Female::On_IsDead(), Roe_Male::On_IsDead(), Roe_Fawn::On_MumAbandon(), Roe_Female::Roe_Female(), Roe_Male::Roe_Male(), Roe_Fawn::Send_InitCare(), and Roe_Male::~Roe_Male().
|
protected |
Referenced by DirectionTo(), DistanceTo(), Roe_Female::FEstablishRange(), NextStep(), Roe_Base(), SeekCover(), SeekNutri(), and WalkTo().
|
protected |
Referenced by DirectionTo(), DistanceTo(), Roe_Female::FEstablishRange(), NextStep(), Roe_Base(), SeekCover(), SeekNutri(), and WalkTo().
|
protected |
Referenced by Roe_Male::BeginStep(), Roe_Fawn::EndStep(), Roe_Female::EndStep(), Roe_Male::EndStep(), and Roe_Base().